package com.solution.admin.promotion.entity;

import java.math.BigDecimal;

import com.solution.common.entity.BaseEntity;

/**
 * 活动商品及满赠商品信息实体类
 * 
 * @author xu_cc
 * @date 2017-09-27 23:26:04
 */
public class PromotionProductEntity extends BaseEntity {
	private static final long serialVersionUID = -3926291988306842687L;
	/* 商品名称 */
	private String productName;
	/* 上架状态 */
	private Integer productStatus;

	/**
	 * 活动ID
	 */
	private Long promotionId;

	/**
	 * 商品类型（1=条件商品，2=满赠商品）
	 */
	private String productType;

	/**
	 * 商品编码
	 */
	private String productCode;

	/**
	 * 活动规则ID（只有当商品类型是2的时候，该字段才有效）
	 */
	private Long promotionRuleId;

	/**
	 * 活动类型，如：【满赠】/【满减】/【折扣】
	 */
	private String promotionTypeName;

	/**
	 * 满赠活动下面赠品类型 【赠品】【优惠券】 【积分】
	 */
	private String giftType;

	/**
	 * 赠品数量
	 */
	private int giftNum;

	/**
	 * 满减金额
	 */
	private BigDecimal reduceMoney;
	/**
	 * 赠送积分
	 */
	private BigDecimal points;
	/**
	 * 赠品优惠券金额
	 */
	private BigDecimal coupon;

	/**
	 * 赠品优惠券关联id
	 */
	private long couponId;

	/**
	 * 折扣
	 */
	private BigDecimal discount;

	/**
	 * 活动ID
	 */
	public Long getPromotionId() {
		return promotionId;
	}

	public void setPromotionId(Long promotionId) {
		this.promotionId = promotionId;
	}

	/**
	 * 商品类型（1=条件商品，2=满赠商品）
	 */
	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	/**
	 * 商品编码
	 */
	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	/**
	 * 活动规则ID（只有当商品类型是2的时候，该字段才有效）
	 */
	public Long getPromotionRuleId() {
		return promotionRuleId;
	}

	public void setPromotionRuleId(Long promotionRuleId) {
		this.promotionRuleId = promotionRuleId;
	}

	/**
	 * @return the productName
	 */
	public String getProductName() {
		return productName;
	}

	/**
	 * @param productName
	 *            the productName to set
	 */
	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getGiftNum() {
		return giftNum;
	}

	public void setGiftNum(int giftNum) {
		this.giftNum = giftNum;
	}

	public BigDecimal getReduceMoney() {
		return reduceMoney;
	}

	public void setReduceMoney(BigDecimal reduceMoney) {
		this.reduceMoney = reduceMoney;
	}

	public String getPromotionTypeName() {
		return promotionTypeName;
	}

	public void setPromotionTypeName(String promotionTypeName) {
		this.promotionTypeName = promotionTypeName;
	}

	public String getGiftType() {
		return giftType;
	}

	public void setGiftType(String giftType) {
		this.giftType = giftType;
	}

	public BigDecimal getPoints() {
		return points;
	}

	public void setPoints(BigDecimal points) {
		this.points = points;
	}

	public BigDecimal getCoupon() {
		return coupon;
	}

	public void setCoupon(BigDecimal coupon) {
		this.coupon = coupon;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public long getCouponId() {
		return couponId;
	}

	public void setCouponId(long couponId) {
		this.couponId = couponId;
	}

	/**
	 * @return the productStatus
	 */
	public Integer getProductStatus() {
		return productStatus;
	}

	/**
	 * @param productStatus
	 *            the productStatus to set
	 */
	public void setProductStatus(Integer productStatus) {
		this.productStatus = productStatus;
	}

}
